package com.jgp.swagger.props;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import springfox.documentation.service.Contact;

import java.util.Map;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019/4/9
 */
@Component
@ConfigurationProperties("jgp.api-doc")
public class SwaggerConfigPropBean {
    private Boolean enabled = false;
    private String title;
    private String description;
    private String version;
    private MyContact contact;
    
    private Map<String,String[]> groups;
    
    public Map<String, String[]> getGroups() {
        return groups;
    }
    
    public void setGroups(Map<String, String[]> groups) {
        this.groups = groups;
    }
    
    public Boolean getEnabled() {
        return enabled;
    }
    
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getVersion() {
        return version;
    }
    
    public void setVersion(String version) {
        this.version = version;
    }
    
    public MyContact getContact() {
        return contact;
    }
    
    public void setContact(MyContact contact) {
        this.contact = contact;
    }
    
    static class MyContact extends Contact {
        private  String name;
        private  String url;
        private  String email;
    
        public MyContact(String name, String url, String email) {
            super(name, url, email);
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    
        public String getUrl() {
            return url;
        }
    
        public void setUrl(String url) {
            this.url = url;
        }
    
        public String getEmail() {
            return email;
        }
    
        public void setEmail(String email) {
            this.email = email;
        }
    }
    
}
